package com.xmut.rc.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 出租信息表
 * </p>
 *
 * @author ccm
 * @since 2022-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("rc_rent_info")
@ApiModel(value="RentInfo对象", description="出租信息表")
public class RentInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "车id")
    private String carId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "空闲开始时间")
    private Date beginTime;

    @ApiModelProperty(value = "空闲结束时间")
    private Date endTime;

    @ApiModelProperty(value = "取车地点")
    private String takePlace;

    @ApiModelProperty(value = "还车地点")
    private String backPlace;

    @ApiModelProperty(value = "费用")
    private Long rentFee;

    @ApiModelProperty(value = "单位")
    private String rentUnit;

    @ApiModelProperty(value = "状态")
    private String status;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建日期")
    private Date gmtCreate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新日期")
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Integer isDelete;


}
